//
//  RanPhotoPickerViewController.h
//  testAVFoundation
//
//  Created by Ran on 15/11/5.
//  Copyright (c) 2015年 gintong. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum{
    
    RanPhotoPickerTypePhotoOnly,/**<只选择照片*/
    RanPhotoPickerTypeVideoOnly,/**只选择视频*/
    RanPhotoPickerTypePhotoAndVideo /**<选择照片和视频*/
} RanPhotoPickerType;

@class RanPhotoPickerViewController;
@protocol RanPhotoPickerViewControllerDelegate <NSObject>

- (void)photoPickerViewController: (RanPhotoPickerViewController *)controller didFinishPickingWithData: (NSArray *)data;

@optional
- (void)photoPickerViewControllerDidCancel: (RanPhotoPickerViewController *)controller;

@end

@interface RanPhotoPickerViewController : UIViewController

@property(nonatomic, copy)NSString *navigationBackText;/**<导航栏返回按钮文字*/
@property(nonatomic, copy)NSString *navigationTitle;/**<导航栏标题*/

@property(nonatomic, assign)NSInteger maxPhotosNum;/**<最大照片选择数,默认9*/
@property(nonatomic, assign)NSInteger maxVideosNum;/**<最大视频选择数,默认9*/
@property(nonatomic, assign)NSInteger maxVideosAndPhotosNum;/**<视频和照片最大选择总数,默认9*/

@property(nonatomic, assign)CGFloat maxPhotoSize;/**<最大照片大小(M),默认不限*/
@property(nonatomic, assign)CGFloat maxVideoSize;/**<最大视频大小(M),默认不限*/

@property(nonatomic, assign)RanPhotoPickerType sourceType;/**<资源类型选择,默认照片*/

@property(nonatomic, weak) id<RanPhotoPickerViewControllerDelegate>delegate;

//选择器弹出方式
- (void)showWithPresentMethodFromViewController: (UIViewController *)viewController;
- (void)showWithPushMethodFromViewController: (UIViewController *)viewController;

@end
